package light.head.model.el;

import java.io.Serializable;
/**
 * 
 */
public class ClassCourseTopicRelationPK implements Serializable{

	
	private static final long serialVersionUID = 8069861245544944632L;
	private Integer clc;			// 班级编号
	private Integer cc;				// 课程编号
	private Integer tc;				// 题目编号
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj) {  
            return true;  
        }  
        if (null == obj) {  
            return false;  
        }  
        if (!(obj instanceof ClassCourseTopicRelationPK)) {  
            return false;  
        }  
  
        final ClassCourseTopicRelationPK cctr = (ClassCourseTopicRelationPK) obj;
        if (!cc.equals(cctr.getCc())) {
            return false;
        }
        if(!tc.equals(cctr.getTc())){
        	return false;
        }
        if (null == clc || clc.intValue() != cctr.getClc().intValue()) {
            return false;
        }
        return true;  
	}
	@Override
	public int hashCode() {
		int result;  
        result = clc.hashCode();  
        result = 29 * result + cc.hashCode();  
        result = 29 * result + tc.hashCode();  
        return result;  
	}
	
	
	public Integer getClc() {
		return clc;
	}
	public void setClc(Integer clc) {
		this.clc = clc;
	}
	public Integer getCc() {
		return cc;
	}
	public void setCc(Integer cc) {
		this.cc = cc;
	}
	public Integer getTc() {
		return tc;
	}
	public void setTc(Integer tc) {
		this.tc = tc;
	}
}
